package com.csist.model;

import java.io.Serializable;
import java.net.Socket;

public class User implements Serializable {
    private int id;
    private String name;
    private String psw;
    private Socket socket;
    public User() {
    }

    public User(int id, String name, String psw) {
        this.id = id;
        this.name = name;
        this.psw = psw;
    }

    public User(int id, String name, String psw, Socket socket) {
        this.id = id;
        this.name = name;
        this.psw = psw;
        this.socket = socket;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    public Socket getSocket() {
        return socket;
    }

    public void setSocket(Socket socket) {
        this.socket = socket;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", psw='" + psw + '\'' +
                ", socket=" + socket +
                '}';
    }
}
